import 'package:flutter/material.dart';
import 'routes/Routes.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate
      ],
      supportedLocales: [const Locale('zh', 'CH'), const Locale('en', 'US')],
      debugShowCheckedModeBanner: false, //去掉debug字样
      // home: Tabs(),
      initialRoute: '/', //初始化路由
      //命名路由
      onGenerateRoute: onGenerateRoute,
    );
  }
}
